﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "ILabourlanguage" here, you must also update the reference to "ILabourlanguage" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface ILabourLanguage
    {
        [OperationContract]
        DataSet LabourLanguage_GetAll();

        [OperationContract]
        LabourLanguageInfo LabourLanguage_GetInfo(int LLID);

        [OperationContract]
        DataSet LabourLanguage_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        int LabourLanguage_Insert(LabourLanguageInfo eInfo);

        [OperationContract]
        bool LabourLanguage_Update(LabourLanguageInfo eInfo);

        [OperationContract]
        bool LabourLanguage_Delete(int LLID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class LabourLanguageInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        int _testID;
        [DataMember]
        public int testID
        {
            get { return _testID; }
            set { _testID = value; }
        }

        string _LanguageLevel;
        [DataMember]
        public string LanguageLevel
        {
            get { return _LanguageLevel; }
            set { _LanguageLevel = value; }
        }

        string _Description;
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        int _EmployeeID;
        [DataMember]
        public int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }

        int _LanguageID;
        [DataMember]
        public int LanguageID
        {
            get { return _LanguageID; }
            set { _LanguageID = value; }
        }
    }
}

